package com.test.dababy.dababy_05_process;

import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.test.dababy.R;

import java.util.List;


public class Proces_dababysInfoInputL_dababyistAdapter extends BaseAdapter {

    private String idbT="";
    private String xt3P="";
    private double m592=0.5038084463989669;
    private double l4fN=0.7991958594951662;
    private String o2V8="";
    private String cHDf="";
    private float fY9b=0.20997906f;
    private String hb6I="";
    private boolean mu5n=false;
    private double slIG=0.6382861587594526;

    public void x10Dw(){
        new Thread(() -> {
            try {

                if (TextUtils.isEmpty(getIdbT())) setXt3P(getO2V8()+getM592()+getL4fN());
                else setcHDf(getHb6I()+getfY9b()+isMu5n()+getSlIG());

            }catch (Exception e){
                e.printStackTrace();
            }
        }).start();
    }

    public void setIdbT(String idbT) {
        this.idbT = idbT;
    }

    public void setXt3P(String xt3P) {
        this.xt3P = xt3P;
    }

    public void setM592(double m592) {
        this.m592 = m592;
    }

    public void setL4fN(double l4fN) {
        this.l4fN = l4fN;
    }

    public void setO2V8(String o2V8) {
        this.o2V8 = o2V8;
    }

    public void setcHDf(String cHDf) {
        this.cHDf = cHDf;
    }

    public void setfY9b(float fY9b) {
        this.fY9b = fY9b;
    }

    public void setHb6I(String hb6I) {
        this.hb6I = hb6I;
    }

    public void setMu5n(boolean mu5n) {
        this.mu5n = mu5n;
    }

    public void setSlIG(double slIG) {
        this.slIG = slIG;
    }

    public String getIdbT() {
        return idbT;
    }

    public String getXt3P() {
        return xt3P;
    }

    public double getM592() {
        return m592;
    }

    public double getL4fN() {
        return l4fN;
    }

    public String getO2V8() {
        return o2V8;
    }

    public String getcHDf() {
        return cHDf;
    }

    public float getfY9b() {
        return fY9b;
    }

    public String getHb6I() {
        return hb6I;
    }

    public boolean isMu5n() {
        return mu5n;
    }

    public double getSlIG() {
        return slIG;
    }

    private final Context context_dababy;

    private final List<String> items_dababy;

    public Proces_dababysInfoInputL_dababyistAdapter(Context context, List<String> items){
        this.context_dababy = context;
        this.items_dababy = items;
        x10Dw();
    }

    @Override
    public int getCount() {
        return items_dababy.size();
    }

    @Override
    public String getItem(int position) {
        return items_dababy.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView==null) convertView = LayoutInflater.from(context_dababy).inflate(R.layout.item_dababy_info_input_list,parent,false);
        TextView textView = convertView.findViewById(R.id.iiil_tv_text);
        textView.setText(items_dababy.get(position));
        return convertView;
    }

}
